package com.yuyou.hxyy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

import com.yuyou.hxyy.service.api.util.SpringUtil;

@EnableTransactionManagement
@SpringBootApplication
@EnableSwagger2
public class HxyyGatewayApplication {


	//使用spring security 拦截器
/*	@Bean
    public FilterRegistrationBean setFilter(){
        FilterRegistrationBean filterBean = new FilterRegistrationBean();
        filterBean.setFilter(new AccessFilter());
        filterBean.setName("AccessFilter");
        filterBean.addUrlPatterns("*//*");
        return filterBean;
    }*/

    
    @Bean
    public SpringUtil springUtil(){
    	return new SpringUtil();
    }
	
	public static void main(String[] args) {
		SpringApplication.run(HxyyGatewayApplication.class, args);
	}
	
}
